package cn.jbolt.ec.route;


import cn.jbolt.ec.commodity.EcCommodityController;
import cn.jbolt.ec.commodity.EcCommodityTypeController;
import cn.jbolt.ec.member.EcMemberController;
import cn.jbolt.ec.order.EcOrderController;
import cn.jbolt.ec.order.EcPayController;
import cn.jbolt.ec.order_return.EcOrderReturnController;
import cn.jbolt.ec.retailer.EcRetailerController;
import cn.jbolt.ec.rush.EcRushCommodityController;
import cn.jbolt.ec.spreader.EcSpreaderController;
import cn.jbolt.ec.wx.EcWechatController;
import cn.jbolt.ec.app.EcAppController;
import com.jfinal.config.Routes;

public class EcMallRoutes extends Routes {
        @Override
        public void config() {
        this.setBaseViewPath("/mall");

        /**
         * commodity
         * 商品
         */
        this.add("/mall/commodity", EcCommodityController.class,"/commodity");
        this.add("/mall/type/commodity", EcCommodityTypeController.class,"/commodity");

        /**
         * commodity
         * 商品
         */
        this.add("/mall/order", EcOrderController.class,"/order");
        this.add("/mall/pay", EcPayController.class,"/order");

                /**
                 * commodity
                 * 商品
                 */
        this.add("/mall/retailer", EcRetailerController.class,"/retailer");

        this.add("/mall/wx", EcWechatController.class,"/wx");

        this.add("/mall/member", EcMemberController.class,"/member");

        this.add("/mall/app",EcAppController.class,"/app");
        this.add("/mall/spreader", EcSpreaderController.class,"");

        this.add("/mall/rush", EcRushCommodityController.class,"/rush");

        this.add("mall/order_return", EcOrderReturnController.class,"/return");

        }
}